<?
include("common/header.html");
include("common/page.php");
include("common/left.html");
if($_SESSION['memberID']!=1 && !($_SESSION['sid']==1 && strpos($_SESSION['qx'],'fees'))){
    exit("不合法的身份访问！");
    //exit("<script>window.location='dlogin.html'</script>");
}

$currentPage=$_REQUEST["currentPage"]?$_REQUEST["currentPage"]:1;
$pageSize=$_REQUEST['pageSize']?$_REQUEST["pageSize"]:15;
$txt=$_REQUEST["txt"];
$apply=array();
$str="";
if($txt){
	$str=" and (instr(dname,'".$txt."') or account='".$txt."')";
}
$sel="select m.id,account,dname,cname,mobile,fee_platform,fee_bank,fee_sms,fee_code,fee_pay_way from pft_member m left join pft_member_extinfo e on e.fid=m.id where dtype<2 and status in (0,3)".$str." limit ".($currentPage-1)*$pageSize.",".$pageSize;
$GLOBALS['le']->query($sel);
while($row=$GLOBALS['le']->fetch_assoc()){
	$apply[]=$row;
}

$sel="select count(*) total from pft_member where dtype<2 and status=0";
$sel .=$str;
$GLOBALS['le']->query($sel);
$GLOBALS['le']->fetch_assoc();
$total=$GLOBALS['le']->f("total");
include("tpl/fees.html");
include("common/footer.html");?>